package com.jinmdz.fmis.mapper.entity;

import com.jinmdz.fmis.mapper.annotation.MyColumn;
import com.jinmdz.fmis.mapper.annotation.MyTable;
import com.jinmdz.fmis.mapper.base.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 车辆调度表Entity
 *
 * @author generator
 * @date 2020-07-06 17:23
 */
@MyTable(value = "RecDispatchCarEntity", name = "rec_dispatch_car", comment = "车辆调度表")
public class RecDispatchCarEntity extends BaseEntity {
    /**
     * 接运外键
     */
    @MyColumn(value = "recId", name = "rec_id", comment = "接运外键", required = true)
    private Integer recId;

    /**
     * 车辆外键
     */
    @MyColumn(value = "recCarId", name = "rec_car_id", comment = "车辆外键", required = true)
    private Integer recCarId;

    /**
     * 车辆牌号
     */
    @MyColumn(value = "recCarNo", name = "rec_car_no", comment = "车辆牌号")
    private String recCarNo;

    /**
     * 调度人姓名
     */
    @MyColumn(value = "dispatchUserName", name = "dispatch_user_name", comment = "调度人姓名", required = true)
    private String dispatchUserName;

    /**
     * 调度人外键
     */
    @MyColumn(value = "dispatchUserId", name = "dispatch_user_id", comment = "调度人外键", required = true)
    private Integer dispatchUserId;

    /**
     * 出车时间
     */
    @MyColumn(value = "dispatchOutTime", name = "dispatch_out_time", comment = "出车时间 ")
    private Date dispatchOutTime;

    /**
     * 回车时间
     */
    @MyColumn(value = "dispatchBackTime", name = "dispatch_back_time", comment = "回车时间")
    private Date dispatchBackTime;

    /**
     * 调度时间
     */
    @MyColumn(value = "dispatchTime", name = "dispatch_time", comment = "调度时间")
    private Date dispatchTime;

    /**
     * 接运里程
     */
    @MyColumn(value = "odometer", name = "odometer", comment = "接运里程")
    private BigDecimal odometer;


    public Integer getRecId() {
        return recId;
    }

    public RecDispatchCarEntity setRecId(Integer recId) {
        this.recId = recId;
        return this;
    }

    public Integer getRecCarId() {
        return recCarId;
    }

    public RecDispatchCarEntity setRecCarId(Integer recCarId) {
        this.recCarId = recCarId;
        return this;
    }

    public String getRecCarNo() {
        return recCarNo;
    }

    public RecDispatchCarEntity setRecCarNo(String recCarNo) {
        this.recCarNo = recCarNo;
        return this;
    }

    public String getDispatchUserName() {
        return dispatchUserName;
    }

    public RecDispatchCarEntity setDispatchUserName(String dispatchUserName) {
        this.dispatchUserName = dispatchUserName;
        return this;
    }

    public Integer getDispatchUserId() {
        return dispatchUserId;
    }

    public RecDispatchCarEntity setDispatchUserId(Integer dispatchUserId) {
        this.dispatchUserId = dispatchUserId;
        return this;
    }

    public Date getDispatchOutTime() {
        return dispatchOutTime;
    }

    public RecDispatchCarEntity setDispatchOutTime(Date dispatchOutTime) {
        this.dispatchOutTime = dispatchOutTime;
        return this;
    }

    public Date getDispatchBackTime() {
        return dispatchBackTime;
    }

    public RecDispatchCarEntity setDispatchBackTime(Date dispatchBackTime) {
        this.dispatchBackTime = dispatchBackTime;
        return this;
    }

    public Date getDispatchTime() {
        return dispatchTime;
    }

    public RecDispatchCarEntity setDispatchTime(Date dispatchTime) {
        this.dispatchTime = dispatchTime;
        return this;
    }

    public BigDecimal getOdometer() {
        return odometer;
    }

    public RecDispatchCarEntity setOdometer(BigDecimal odometer) {
        this.odometer = odometer;
        return this;
    }
}